package com.uking.util;

import android.annotation.SuppressLint;
import android.content.Context;

public class VKUmengCollection {
    private static String TAG = com.smalls.newvideotwo.utils.Constant.baddcoolio2tag? com.smalls.newvideotwo.utils.Constant.TAGPREFIXSTR + "VKUmengCollection":"VKUmengCollection";
    static /* synthetic */ class AnonymousClass1 {
        static final /* synthetic */ int[] $SwitchMap$com$kb$util$VKUmengCollection$ErrorKeyCode = new int[ErrorKeyCode.values().length];

        static {
            try {
                $SwitchMap$com$kb$util$VKUmengCollection$ErrorKeyCode[ErrorKeyCode.ERCODE_EA1.ordinal()] = 1;
            } catch (NoSuchFieldError e) {
            }
            try {
                $SwitchMap$com$kb$util$VKUmengCollection$ErrorKeyCode[ErrorKeyCode.ERCODE_EA5.ordinal()] = 2;
            } catch (NoSuchFieldError e2) {
            }
            try {
                $SwitchMap$com$kb$util$VKUmengCollection$ErrorKeyCode[ErrorKeyCode.ERCODE_EA7.ordinal()] = 3;
            } catch (NoSuchFieldError e3) {
            }
            try {
                $SwitchMap$com$kb$util$VKUmengCollection$ErrorKeyCode[ErrorKeyCode.ERCODE_EB2.ordinal()] = 4;
            } catch (NoSuchFieldError e4) {
            }
            try {
                $SwitchMap$com$kb$util$VKUmengCollection$ErrorKeyCode[ErrorKeyCode.ERCODE_EC1.ordinal()] = 5;
            } catch (NoSuchFieldError e5) {
            }
            try {
                $SwitchMap$com$kb$util$VKUmengCollection$ErrorKeyCode[ErrorKeyCode.ERCODE_EC2.ordinal()] = 6;
            } catch (NoSuchFieldError e6) {
            }
            try {
                $SwitchMap$com$kb$util$VKUmengCollection$ErrorKeyCode[ErrorKeyCode.ERCODE_EC7.ordinal()] = 7;
            } catch (NoSuchFieldError e7) {
            }
            try {
                $SwitchMap$com$kb$util$VKUmengCollection$ErrorKeyCode[ErrorKeyCode.ERCODE_ED2.ordinal()] = 8;
            } catch (NoSuchFieldError e8) {
            }
            try {
                $SwitchMap$com$kb$util$VKUmengCollection$ErrorKeyCode[ErrorKeyCode.ERCODE_EA8.ordinal()] = 9;
            } catch (NoSuchFieldError e9) {
            }
        }
    }

    public enum ErrorKeyCode {
        ERCODE_AVAIL,
        ERCODE_EA1,
        ERCODE_EA5,
        ERCODE_EA7,
        ERCODE_EB2,
        ERCODE_EC1,
        ERCODE_EC2,
        ERCODE_EC7,
        ERCODE_ED2,
        ERCODE_EA8,
        ERCODE_EA9,
        ERCODE_EA4
    }

    public static void collectionsDNSError(String address) {
//        SimpleDateFormat sDateFormat = new SimpleDateFormat(TimeUtils.DEFAULT_STR);
//        Map eventMap = new HashMap();
//        eventMap.put(UmengKey.START_TIME, sDateFormat.format(new Date()));
//        eventMap.put("server", address);
//        MobclickAgent.onEvent(null, UmengEventKey.DNS_ACCESS_FAILED, eventMap);
    }

    @SuppressLint({"SimpleDateFormat"})
    public static void CollectionErrInfoMsg(Context mContext, String channelName, String sn, ErrorKeyCode keyId) {
//        if (!keyId.equals(ErrorKeyCode.ERCODE_AVAIL)) {
//            SimpleDateFormat sDateFormat = new SimpleDateFormat(TimeUtils.DEFAULT_STR);
//            Map eventMap = new HashMap();
//            eventMap.put(UmengKey.START_TIME, sDateFormat.format(new Date()));
//            eventMap.put(UmengKey.CHANNEL_NAME, channelName);
//            eventMap.put("sn", sn);
//            MobclickAgent.onEvent(mContext, getUmengId(keyId), eventMap);
//        }
    }

    @SuppressLint({"SimpleDateFormat"})
    public static void CollectionErrInfoMsg(Context mContext, String sn, ErrorKeyCode keyId) {
//        if (!keyId.equals(ErrorKeyCode.ERCODE_AVAIL)) {
//            SimpleDateFormat sDateFormat = new SimpleDateFormat(TimeUtils.DEFAULT_STR);
//            Map eventMap = new HashMap();
//            eventMap.put(UmengKey.START_TIME, sDateFormat.format(new Date()));
//            eventMap.put("sn", sn);
//            MobclickAgent.onEvent(mContext, getUmengId(keyId), eventMap);
//        }
    }

    private static String getUmengId(ErrorKeyCode id) {
        String umengKey = "";
        return umengKey;
    }
}
